Version:=2.47
ModuleName:=dnsmasq

Object:=dnsmasq.tgz
ObjectDir:=$(ModuleName)-$(Version)/
ObjectSource:=$(ModuleName)-$(Version).tar.gz

INSTALL_DIR:=`pwd`

.PHONY:all clean dist_clean

all:$(Object)
	
$(Object):$(ObjectSource) dnsmasq.conf
	rm -rf usr etc
	tar -xzf $(ObjectSource)
	$(MAKE) -C $(ObjectDir)  
	$(MAKE) -C $(ObjectDir) install DESTDIR=$(INSTALL_DIR)
	rm -rf usr/local/share
	$(g_STRIP)
	mkdir -p etc && cp dnsmasq.conf etc/
	tar -czf $(Object) usr etc

clean:
	rm -fr $(Object) usr etc

dist_clean: clean
	rm -fr $(ObjectDir) $(ObjectSource)

include ../Makefile.Res
